package com.example.demo.service;

import com.example.demo.mapper.UserMapper;
import com.example.demo.model.UserInfo;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: ling
 * Date: 2023-01-08
 * Time: 19:06
 */
@Service
public class UserService {
    @Autowired
    UserMapper userMapper;
    public List<UserInfo> getAll() {
        return userMapper.getAll();
    }
    public int add(String username,String password,String photo) {
        return userMapper.add(username,password,photo);
    }
}
